package Service;

import dao.MyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import utils.ParamsUtil;
import vo.Model;

/**
 * @description:
 * @author: ZZZ
 * @time: 2021/6/8 21:11
 */
@Service
public class MyService {
    @Autowired
    public MyRepository myRepository;

    public void doSomething() {
        this.myRepository.doSomething();
    }

    public Model findById(Model id) {
        System.out.println("dfsdfs");
        Model byIdd = null;
        try {
            byIdd = myRepository.findByIdd(id);
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }

        return byIdd;
    }
}
